package com.cd.system.jpa.entityImport;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;
import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;
import java.util.Map;

/**
* @description 参数配置表 ||  || 
* @author admin
* @date 2024-03-25
*/
@Entity
@Data
@Table(name = "sys_config")
public class SysConfig implements Serializable {

    private static final long serialVersionUID = 1L;

    @Id
    //@Comment("参数主键")
    @Column(name = "config_id", nullable = false )
    @GeneratedValue
    private Long configId;

    //@Comment("参数名称")
    @Column(name = "config_name" )
    private String configName;

    //@Comment("参数键名")
    @Column(name = "config_key" )
    private String configKey;

    //@Comment("参数键值")
    @Column(name = "config_value" )
    private String configValue;

    //@Comment("系统内置（Y是 N否）")
    @Column(name = "config_type" )
    private String configType;

    //@Comment("创建者")
    @Column(name = "create_by" )
    private String createBy;

    //@Comment("创建时间")
    @Column(name = "create_time" )
    private Date createTime;

    //@Comment("更新者")
    @Column(name = "update_by" )
    private String updateBy;

    //@Comment("更新时间")
    @Column(name = "update_time" )
    private Date updateTime;

    //@Comment("备注")
    @Column(name = "remark" )
    private String remark;

    /** 请求参数 */
    @Transient
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private Map<String, Object> params;

}

